<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .text4_1 {
            width: 800px;
            height: 78px;
            line-height: 78px;
            font-size: 40px;
            font-family: '微软雅黑';
            font-weight: bold;
            position: relative;
            color: #000;
        }

        .text4_2 {
            position: absolute;
            color: red;
            left: 0;
            top: 0;
            width: 100px;
            height: 78px;
            line-height: 78px;
            font-size: 40px;
            font-family: '微软雅黑';
            font-weight: bold;
            overflow: hidden;
            white-space: nowrap;
            -webkit-animation: loop2 10s linear infinite;
        }
        @-webkit-keyframes loop2{
            0%{width: 0;}
            100%{width:800px;}
        }
    </style>
</head>
<body>
<div class="text4_1">一盏离愁 孤单伫立在窗口
    <div class="text4_2">一盏离愁 孤单伫立在窗口</div>
</div>
</body>
</html>